package cn.edu.njuit.children.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @TableName sys_menu_type
 */
@TableName(value ="sys_menu_type")
@Data
public class MenuType implements Serializable {
    /**
     * 编码
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联菜谱
     */
    @TableField(value = "menu_id")
    private Long menuId;

    /**
     * 关联分类
     */
    @TableField(value = "recipe_id")
    private Long recipeId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
